/**
 * 
 */
package com.sms.businessservice.impl;

import com.sms.business.CreateUser;
import com.sms.businessservice.CreateUserBusinessService;
import com.sms.dataservice.CreateUserDataService;
import com.sms.vo.CreateUserVO;

/**
 * @author Sahdev Kamboj
 *
 */
public class CreateUserBusinessServiceImpl implements CreateUserBusinessService {
	
	private CreateUserDataService createUserDataService;
	
	/**
	 * @param createUserDataService the createUserDataService to set
	 */
	public void setCreateUserDataService(CreateUserDataService createUserDataService) {
		this.createUserDataService = createUserDataService;
	}

	

	@Override
	public void saveCreateUser(CreateUserVO createUserVO) throws Exception {
		CreateUser createUser = new CreateUser();
		createUser.setName(createUserVO.getName());
		createUser.setLastName(createUserVO.getLastName());
		createUser.setFatherName(createUserVO.getFatherName());
		createUser.setAge(createUserVO.getAge());
		createUser.setDob(createUserVO.getDob());
		createUser.setSex(createUserVO.getSex());
		createUser.setEmailID(createUserVO.getEmailID());
		createUser.setPassword(createUserVO.getPassword());
		createUserDataService.saveCreateUser(createUser);
		
	}


}
